package com.example.haoqisystem.respository;

import com.example.haoqisystem.entity.TrainningPlan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface TrainningPlanRepository extends JpaRepository<TrainningPlan, Long>,
        JpaSpecificationExecutor <TrainningPlan>{
    Optional<TrainningPlan> findByIdAndDeletedFalse(Long id);
}
